import React, { Component } from 'react';
import store from '../../store/index'
class rdxzym extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
  }
  render() { 
    return ( 
      <div>
         <div>redux 子页面</div>
        <ul className="rdxUl clearfix">
          <li>
            列表：{
              store.getState().list.map((item,index)=>{
                return <span key={index}>{item.title} --- {item.isFinished} &nbsp;&nbsp;&nbsp;&nbsp;</span>
              })
            }
          </li>
          <li>周几：{ store.getState().week }</li>
          <li>年龄：{ store.getState().age }</li>
          <li>{store.getState().name? `名字：${store.getState().name}`:'' }</li>
        </ul>
      </div>
    );
  }
}
 
export default rdxzym;